package cn.jsl.pet.service;

import cn.jsl.basic.util.PageList;
import cn.jsl.pet.domain.SearchMasterMsg;
import cn.jsl.basic.service.IBaseService;
import cn.jsl.pet.dto.MsgDto;
import cn.jsl.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jijie
 * @since 2022-06-18
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    /**
     * 寻主消息
     * @param searchMasterMsg
     * @param request
     */
    void publish(SearchMasterMsg searchMasterMsg, HttpServletRequest request);

    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, HttpServletRequest request);

    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request);

    void reject(Long msgId);

    void accept(MsgDto msgDto);
}
